﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PetaPoco;
using Shop.Backstage.Models;
using Shop.Core.Models;

namespace Shop.Backstage.Repositories
{
     public class nameAndpassIfdb
    {
        public AdminInfo nameAndpassIfdbWay(string loginname, string password)
        {
            Sql sql = Sql.Builder.Append("select AID,AName,APass,Tel,CreateDate from Shop_Admin where AName = @0 and APass = @1", loginname, password);
            return ModelInfo.db.FirstOrDefault<AdminInfo>(sql);
        }
    }
}
